/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package AplManager.models;

/**
 *
 * @author user
 */
public class Player {
    String fname;
    String lname;
    String position;
    Boolean isInStartingLineUp;
    int number;
    int goals;
    int assists;
    
    public Player(String fname,String lname,String position,int number){
    this.fname = fname;
    this.lname = lname;
    this.position = position;
    this.number = number;
    goals = 0;
    assists = 0;
    isInStartingLineUp = false;
    }
    
    public void setFirstName(String fname){
         this.fname = fname;
    }
    
    public void setlastName(String lname){
         this.lname = lname;
    }
    
    public void setPosition(String position){
         this.position = position;
    }
     public void setNumber(int number){
         this.number = number;
    }
    
      public void setGoals(int goals){
         this.goals = goals;
    }
          public void setAssists(int assists){
         this.assists = assists;
    }
  
    public String getFirstName(){
         return fname;
    }
    
    public String getlastName(){
         return lname;
    }
    
    public String getPosition(){
         return position;
    }
     public int getNumber(){
         return number;
    }
    
      public int getGoals(){
         return goals;
    }
          public int getAssists(){
         return assists;
    }
    public void falsify(){
    isInStartingLineUp = false;
    }
    public void trutify(){
    isInStartingLineUp = true;
    }
    public boolean isInStartingLineUp(){
    if(isInStartingLineUp == true){
     return true;
    }
    else
        return false;
    }
    
}
